﻿
#include <stdio.h>
#include <Windows.h>
#include <process.h>

#include "j1939_config.h"

int bsp_can_send(CAN_NODE port, j1939_uint8_t* buf, j1939_uint32_t buf_len, j1939_uint32_t id)
{

}

DWORD WINAPI J1939_App(LPVOID lpParam)
{
    while (1)
    {
        printf("J1939 APP\n");

        Sleep(200);
    }
}

int main()
{
    HANDLE htheard;
    DWORD dwthreadId;

    htheard = CreateThread(NULL, 1024, J1939_App, NULL, NULL, &dwthreadId);
    if (htheard == NULL)
    {
        DWORD err = GetLastError();
        printf("Failed to create Thread with code %d.\n", err);
        return 1;
    }
    printf("Thread Create OK!\n");
    while (1)
    {
        printf("Main\n");
        Sleep(20);
    }
}

